package es.us.isa.jdbl.domain.biblio;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.SecondaryTable;
import javax.persistence.SecondaryTables;
import javax.persistence.Table;

@Entity
@SecondaryTables({
	@SecondaryTable(name="content_type_biblio", catalog = "webisa", pkJoinColumns={
			@PrimaryKeyJoinColumn(name="nid", referencedColumnName="nid")}),
})
@DiscriminatorValue("1004")
@Table(name="biblio", catalog = "webisa")
public class TechReport extends Biblio {
	@Column(name="biblio_publisher")
	private String institution;
	
	@Column(name="biblio_number")
	private String number;
	
	@Column(name="biblio_auth_address")
	private String address;
	
	@Column(name="biblio_date")
	private String month;
	
	@Column(name="biblio_notes")
	private String notes;

	@Column(name="biblio_secondary_title")
	private String secondaryTitle;
	
	@Column(name="biblio_tertiary_title")
	private String seriesTitle;
	
	@Column(name="biblio_edition")
	private String edition;
	
	@Column(name="biblio_volume")
	private String volume;
	
	@Column(name="biblio_pages")
	private String pages;
	
	@Column(name="biblio_issn")
	private String issn;
	
	@Column(name="field_phdwithhonors_value", table="content_type_biblio")
	private boolean phdWithHonors;
	
	@Column(name="field_european_thesis_value", table="content_type_biblio")
	private boolean europeanThesis;
	
	@Column(name="field_best_presentation_value", table="content_type_biblio")
	private String bestPresentation;

	public String getInstitution() {
		return institution;
	}

	public void setInstitution(String institution) {
		this.institution = institution;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public String getSecondaryTitle() {
		return secondaryTitle;
	}

	public void setSecondaryTitle(String secondaryTitle) {
		this.secondaryTitle = secondaryTitle;
	}

	public String getSeriesTitle() {
		return seriesTitle;
	}

	public void setSeriesTitle(String tertiaryTitle) {
		this.seriesTitle = tertiaryTitle;
	}

	public String getEdition() {
		return edition;
	}

	public void setEdition(String edition) {
		this.edition = edition;
	}

	public String getVolume() {
		return volume;
	}

	public void setVolume(String volume) {
		this.volume = volume;
	}

	public String getPages() {
		return pages;
	}

	public void setPages(String pages) {
		this.pages = pages;
	}

	public String getIssn() {
		return issn;
	}

	public void setIssn(String issn) {
		this.issn = issn;
	}

	public boolean isPhdWithHonors() {
		return phdWithHonors;
	}

	public void setPhdWithHonors(boolean phdWithHonors) {
		this.phdWithHonors = phdWithHonors;
	}

	public boolean isEuropeanThesis() {
		return europeanThesis;
	}

	public void setEuropeanThesis(boolean europeanThesis) {
		this.europeanThesis = europeanThesis;
	}

	public String getBestPresentation() {
		return bestPresentation;
	}

	public void setBestPresentation(String bestPresentation) {
		this.bestPresentation = bestPresentation;
	}
	
	
	
}
